package priv.yiyuan.example.design.facade;

/**
 * 支付服务
 * <p>
 * 外观模式-子系统类
 *
 * @author YiYuan
 * @data 2025/9/12
 * @apoNote
 */
public class PaymentService {

    public boolean makePayment(String orderId, double amount) {
        System.out.println("支付服务: 订单 " + orderId + " 支付金额 " + amount + " 支付成功。");
        return true;
    }

    public void refund(String orderId, double amount) {
        System.out.println("支付服务: 订单 " + orderId + " 退款金额 " + amount + " 退款成功。");
    }

}
